//
//  Timer.m
//  K8彩票
//
//  Created by zhoubo on 2017/6/8.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "Timer.h"

@implementation Timer

+(instancetype)sharedInstanceTarget:(NSObject*)target andSelector:(SEL)selector
{
    static Timer* timer = nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        timer = [[Timer alloc]init];

    });
//    timer.time = [NSTimer timerWithTimeInterval:1 target:target selector:selector userInfo:nil repeats:YES];
//    [[NSRunLoop currentRunLoop] addTimer:timer.time forMode:NSRunLoopCommonModes];
    
    return timer;
}



@end
